package com.dsideal.cloud.cas.client.entity;

import com.dsideal.cloud.common.entity.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.jdbc.core.RowMapper;

import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.Date;

/**
 * 用户登录日志信息
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class UserLog extends BaseEntity{

    private String baseUserLogId;
    private String baseUserId;
    private String userName;
    private String loginName;
    private String yjId;
    private String bureauId;
    private String bureauName;
    private String identityCode;
    private String sex;
    private String gradeName;
    private String baseClassId;
    private String className;

    /**
     * 登录类型 1、用户账号+密码登录
     */
    private String loginType;
    /**
     * 账号类型 1、普通账号 2、域账号
     */
    private String accountType;
    /**
     * 登录ip
     */
    private String loginIp;
    /**
     * 设备类型 1、网页端 2、PC授课端 3、安卓平板端 4、iPad端 5、安卓手机端 6、苹果手机端
     */
    private String equipmentType;
    /**
     * 登录结果（1、成功 0、失败）
     */
    private String loginResult;
    /**
     * 登录备注
     */
    private String loginRemark;
    private String stageCode;
    private String stageName;
    private String subjectCode;
    private String subjectName;
    private String bureauStage;


    private Date createTime;

}
